<%@ Control Language="C#" AutoEventWireup="true" Inherits="CMS.Web.UI.UserControls.ForumEditor" %>
<asp:Repeater ID="repeaterCategory" runat="server">
    <HeaderTemplate>
        <table>
    </HeaderTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
    <ItemTemplate>
        <tr>
            <td><a href="?Page=<%= Page.PageID %>&ForumCategory=<%# Eval("ForumCategoryID") %>"><img src="/Pics/CMS/Edit.png" alt="Edit" /></a></td>
            <td><%# Eval("ForumCategoryName") %></td>
            <td><a href="?Page=<%= Page.PageID %>&DeleteCategory=<%# Eval("ForumCategoryID") %>"><img src="/Pics/CMS/Delete.png" alt="X" /></a></td>
        </tr>
    </ItemTemplate>
</asp:Repeater>

<asp:Repeater ID="repeaterForum" runat="server">
    <HeaderTemplate>
        <table>
    </HeaderTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
    <ItemTemplate>
        <tr>
            <td><a href="?Page=<%= Page.PageID %>&Forum=<%# Eval("ForumID") %>"><img src="/Pics/CMS/Edit.png" alt="Edit" /></a></td>
            <td><%# Eval("ForumName") %></td>
            <td><a href="?Page=<%= Page.PageID %>&Delete=<%# Eval("ForumID") %>"><img src="/Pics/CMS/Delete.png" alt="X" /></a></td>
        </tr>
    </ItemTemplate>
</asp:Repeater>

<table>
    <tr>
        <td><asp:Label ID="lName" runat="server" Text="Name" /></td>
        <td><asp:TextBox ID="tbName" runat="server" /></td>
    </tr>
    <tr>
        <td colspan="2"><asp:Label ID="lDescription" runat="server" Text="Description" /></td>
    </tr>
    <tr>
        <td colspan="2"><asp:TextBox ID="tbDescription" runat="server" TextMode="MultiLine" /></td>
    </tr>
    <tr>
        <td><asp:Label ID="lCategory" runat="server" Text="Category" /></td>
        <td><asp:DropDownList ID="ddlCategory" runat="server" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Button ID="bValidateCategory" runat="server" Text="Validate Category" />
            <asp:Button ID="bValidateForum" runat="server" Text="Validate Forum" />
        </td>
    </tr>
</table>


